package com.wyf.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class User {
    private String name;

    public User(String name) {
        this.name = name;
        System.out.println("User的有参构造");
    }

    public User() {
        System.out.println("User的无参构造");
    }

    public void show() {
        System.out.println("name" + name);
    }
}
